package com.ruoyi.project.system.domain;

import java.math.BigDecimal;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 退款对象 sm_refund
 */
public class SmRefund extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Integer id;

    /** 支付订单 */
    @Excel(name = "支付订单")
    private Integer payId;

    /** 退款单号 */
    @Excel(name = "退款单号")
    private String orderNo;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal amount;

    /** 退款状态 */
    @Excel(name = "退款状态")
    private String status;

    /** 平台退款单号 */
    @Excel(name = "平台退款单号")
    private String platformOrderNo;

    public SmRefund() {
    }

    public SmRefund(Integer payId, String orderNo, BigDecimal amount) {
        this.payId = payId;
        this.orderNo = orderNo;
        this.amount = amount;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPayId(Integer payId) 
    {
        this.payId = payId;
    }

    public Integer getPayId() 
    {
        return payId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setPlatformOrderNo(String platformOrderNo) 
    {
        this.platformOrderNo = platformOrderNo;
    }

    public String getPlatformOrderNo() 
    {
        return platformOrderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("payId", getPayId())
            .append("orderNo", getOrderNo())
            .append("amount", getAmount())
            .append("status", getStatus())
            .append("platformOrderNo", getPlatformOrderNo())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
